package cn.com.yusys.yusp.admin.web.rest;


import cn.com.yusys.yusp.admin.service.MessageProviderService;
import cn.com.yusys.yusp.commons.exception.Message;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/provider")
public class MessageProviderResource {
   
    @Autowired
    private MessageProviderService messageProviderService;

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public  Message getMessage(String code) {
        return messageProviderService.getMessage(code);
    }
}
